package com.dragon.modules.yuegou.service.marketing;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.marketing.ActivityEntity;
import com.dragon.modules.yuegou.model.marketing.Activity;
import com.dragon.modules.yuegou.query.marketing.ActivityQuery;

/**
 * 抽奖活动表 服务接口
 *
 * @author pbuilder generated
 * @date 2019-04-23 14:40:38
 * @version 2.0
 */
public interface ActivityService extends IService<ActivityEntity> {

    IPage<Activity> search(PageRequest page, ActivityQuery query);

    /**
     * 查询抽奖活动信息详情
     */
    Activity getActivity(String id);

    /**
     * 保存抽奖活动信息
     */
    void saveLuckActivity(Activity activity);

    /**
     * 停用抽奖活动
     */
    void stopActivity(String id);

    /**
     * 执行抽奖活动状态变更
     */
    void expireActivity();

}